---
layout: "default"
title: "FloatingPointClassification"
root: "/v5.1"
keywords: ""
description: "Swift documentation for 'FloatingPointClassification'"
---

<div class="intro-declaration"><code class="language-swift">enum FloatingPointClassification</code></div><p>The IEEE 754 floating-point classes.</p>
<div class="discussion comment"></div><h3>Cases</h3><div id="negativeInfinity-fb60cb6d4c149d6ed3e3f19cd9af8c8b" class="declaration"><a class="toggle-link" href="#comment-negativeInfinity-fb60cb6d4c149d6ed3e3f19cd9af8c8b">case negativeInfinity</a> <span class="required">Required</span><div class="comment collapse in" id="comment-negativeInfinity-fb60cb6d4c149d6ed3e3f19cd9af8c8b"><p>A value equal to <code>-infinity</code>.</p>
<h4>Declaration</h4><code class="language-swift">case negativeInfinity</code></div></div><div id="negativeNormal-6c9c5129f0207f2079151a60e55b3c8a" class="declaration"><a class="toggle-link" href="#comment-negativeNormal-6c9c5129f0207f2079151a60e55b3c8a">case negativeNormal</a> <span class="required">Required</span><div class="comment collapse in" id="comment-negativeNormal-6c9c5129f0207f2079151a60e55b3c8a"><p>A negative value that uses the full precision of the floating-point type.</p>
<h4>Declaration</h4><code class="language-swift">case negativeNormal</code></div></div><div id="negativeSubnormal-b540c47bce0211b9204f90e314ac7e62" class="declaration"><a class="toggle-link" href="#comment-negativeSubnormal-b540c47bce0211b9204f90e314ac7e62">case negativeSubnormal</a> <span class="required">Required</span><div class="comment collapse in" id="comment-negativeSubnormal-b540c47bce0211b9204f90e314ac7e62"><p>A negative, nonzero number that does not use the full precision of the
floating-point type.</p>
<h4>Declaration</h4><code class="language-swift">case negativeSubnormal</code></div></div><div id="negativeZero-3b9092eabb195153bec7848f04e58032" class="declaration"><a class="toggle-link" href="#comment-negativeZero-3b9092eabb195153bec7848f04e58032">case negativeZero</a> <span class="required">Required</span><div class="comment collapse in" id="comment-negativeZero-3b9092eabb195153bec7848f04e58032"><p>A value equal to zero with a negative sign.</p>
<h4>Declaration</h4><code class="language-swift">case negativeZero</code></div></div><div id="positiveInfinity-499c45da93cca835d902982c55ec5774" class="declaration"><a class="toggle-link" href="#comment-positiveInfinity-499c45da93cca835d902982c55ec5774">case positiveInfinity</a> <span class="required">Required</span><div class="comment collapse in" id="comment-positiveInfinity-499c45da93cca835d902982c55ec5774"><p>A value equal to <code>+infinity</code>.</p>
<h4>Declaration</h4><code class="language-swift">case positiveInfinity</code></div></div><div id="positiveNormal-a73f803db70f5eadc751eaa71d3c3ca0" class="declaration"><a class="toggle-link" href="#comment-positiveNormal-a73f803db70f5eadc751eaa71d3c3ca0">case positiveNormal</a> <span class="required">Required</span><div class="comment collapse in" id="comment-positiveNormal-a73f803db70f5eadc751eaa71d3c3ca0"><p>A positive value that uses the full precision of the floating-point type.</p>
<h4>Declaration</h4><code class="language-swift">case positiveNormal</code></div></div><div id="positiveSubnormal-91b6f6c7f2326a45d7c93e77f5d47802" class="declaration"><a class="toggle-link" href="#comment-positiveSubnormal-91b6f6c7f2326a45d7c93e77f5d47802">case positiveSubnormal</a> <span class="required">Required</span><div class="comment collapse in" id="comment-positiveSubnormal-91b6f6c7f2326a45d7c93e77f5d47802"><p>A positive, nonzero number that does not use the full precision of the
floating-point type.</p>
<h4>Declaration</h4><code class="language-swift">case positiveSubnormal</code></div></div><div id="positiveZero-9f843a02b4f98db7edd27c2c45e376fa" class="declaration"><a class="toggle-link" href="#comment-positiveZero-9f843a02b4f98db7edd27c2c45e376fa">case positiveZero</a> <span class="required">Required</span><div class="comment collapse in" id="comment-positiveZero-9f843a02b4f98db7edd27c2c45e376fa"><p>A value equal to zero with a positive sign.</p>
<h4>Declaration</h4><code class="language-swift">case positiveZero</code></div></div><div id="quietNaN-d034860f0d1beae5cf32acc20f2277e0" class="declaration"><a class="toggle-link" href="#comment-quietNaN-d034860f0d1beae5cf32acc20f2277e0">case quietNaN</a> <span class="required">Required</span><div class="comment collapse in" id="comment-quietNaN-d034860f0d1beae5cf32acc20f2277e0"><p>A silent NaN (&quot;not a number&quot;) value.</p>
<h4>Declaration</h4><code class="language-swift">case quietNaN</code></div></div><div id="signalingNaN-fd9e20341e8ac5e2f963ae8d4a8a0fbc" class="declaration"><a class="toggle-link" href="#comment-signalingNaN-fd9e20341e8ac5e2f963ae8d4a8a0fbc">case signalingNaN</a> <span class="required">Required</span><div class="comment collapse in" id="comment-signalingNaN-fd9e20341e8ac5e2f963ae8d4a8a0fbc"><p>A signaling NaN (&quot;not a number&quot;).</p>
<p>A signaling NaN sets the floating-point exception status when used in
many floating-point operations.</p>
<h4>Declaration</h4><code class="language-swift">case signalingNaN</code></div></div>